package com.otto.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.otto.reggie.common.R;
import com.otto.reggie.entity.Category;
import com.otto.reggie.mapper.CategoryMapper;
import com.otto.reggie.service.CategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 作者：otto
 * 时间：2022-08-11 19:21:15
 */
@Service
@Slf4j
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
        implements CategoryService {

    public R<String> saveCategory (Category category){
        super.save(category);
        return R.success("保存分类成功");
    }
}
